import { createRouter, createWebHashHistory } from 'vue-router'
const Main = () => import ('../pages/Main.vue')
const MainTab1 = () => import ('../pages/MainTab1.vue')
const MainTab2 = () => import ('../pages/MainTab2.vue')
const MainTab3 = () => import ('../pages/MainTab3.vue')
const MainTab4 = () => import ('../pages/MainTab4.vue')
const MainTab5 = () => import ('../pages/MainTab5.vue')
// import MainTab1 from '../pages/MainTab1.vue'
// import MainTab2 from '../pages/MainTab1.vue'
// import MainTab3 from '../pages/MainTab3.vue'
// import MainTab4 from '../pages/MainTab4.vue'
// import MainTab5 from '../pages/MainTab5.vue'
const routes = [
  {
    path: '/',
    name: 'main',
    // keepAlive: true,
    redirect:'/maintab1',
    component: Main,
      children:[
        {
          path: '/maintab1',
          component: MainTab1
        },
        {
          path: '/maintab2',
          component: MainTab2
        },
        {
          path: '/maintab3',
          component: MainTab3
        },
        {
          path: '/maintab4',
          component: MainTab4
        },
        {
          path: '/maintab5',
          component: MainTab5
          
        }
      ]

  },
   

]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
